<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>2024年度行政执法十大案例评选投票报告</title>
    <link
      href="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-100-M/font-awesome/6.0.0/css/all.min.css"
      rel="stylesheet"
    />
    <link
      href="https://s2.ssl.qhres2.com/static/56662140ef7d5d03.css"
      rel="stylesheet"
    />
    <link
      href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
      rel="stylesheet"
    />
    <script src="https://s2.ssl.qhres2.com/!2dd0bbf7/echats.js"></script>
    <style>
      :root {
        --primary-blue: #1a365d;
        --primary-orange: #dd6b20;
        --light-gray: #f5f5f5;
        --dark-gray: #4a5568;
        --white: #ffffff;
        --transition: all 0.3s ease;
      }

      body {
        font-family: "Helvetica Neue", Arial, sans-serif;
        line-height: 1.6;
        color: var(--dark-gray);
        background-color: var(--white);
        margin: 0;
        padding: 0;
        opacity: 0;
        animation: fadeIn 0.5s ease-in forwards;
      }

      @keyframes fadeIn {
        to {
          opacity: 1;
        }
      }

      .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
      }

      header {
        background: linear-gradient(135deg, var(--primary-blue), #2c5282);
        color: var(--white);
        padding: 3rem 0;
        text-align: center;
        position: relative;
        overflow: hidden;
      }

      header::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></svg>');
        opacity: 0.2;
        z-index: 1;
      }

      .header-content {
        position: relative;
        z-index: 2;
      }

      h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        font-weight: 700;
      }

      .subtitle {
        font-size: 1.2rem;
        opacity: 0.9;
        max-width: 800px;
        margin: 0 auto;
      }

      .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin: 3rem 0;
      }

      .stat-card {
        background: var(--white);
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        transition: var(--transition);
        border-left: 4px solid var(--primary-orange);
      }

      .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
      }

      .stat-value {
        font-size: 2rem;
        font-weight: 700;
        color: var(--primary-blue);
        margin-bottom: 0.5rem;
      }

      .stat-label {
        color: var(--dark-gray);
        font-size: 0.9rem;
      }

      section {
        margin: 4rem 0;
      }

      h2 {
        color: var(--primary-blue);
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 0.5rem;
      }

      h2::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--primary-orange);
      }

      .chart-container {
        background: var(--white);
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        margin-bottom: 2rem;
        height: 400px;
      }

      .image-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin: 2rem 0;
      }

      .image-card {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        transition: var(--transition);
      }

      .image-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
      }

      .image-card img {
        width: 100%;
        height: auto;
        display: block;
      }

      .image-caption {
        padding: 1rem;
        background: var(--white);
        font-size: 0.9rem;
        color: var(--dark-gray);
      }

      .highlight {
        background: var(--light-gray);
        padding: 2rem;
        border-radius: 8px;
        margin: 2rem 0;
        border-left: 4px solid var(--primary-orange);
      }

      .highlight-title {
        color: var(--primary-blue);
        font-size: 1.3rem;
        margin-bottom: 1rem;
      }

      .conclusion {
        background: var(--primary-blue);
        color: var(--white);
        padding: 3rem 0;
        text-align: center;
      }

      .conclusion h2 {
        color: var(--white);
      }

      .conclusion h2::after {
        background: var(--primary-orange);
      }

      .conclusion p {
        max-width: 800px;
        margin: 0 auto 1.5rem;
        opacity: 0.9;
      }

      footer {
        background: var(--dark-gray);
        color: var(--white);
        padding: 2rem 0;
        text-align: center;
        font-size: 0.9rem;
      }

      .particle {
        position: absolute;
        background-color: var(--primary-orange);
        border-radius: 50%;
        pointer-events: none;
        z-index: 1;
      }

      @media (max-width: 768px) {
        h1 {
          font-size: 2rem;
        }

        .stats-grid {
          grid-template-columns: 1fr;
        }

        .chart-container {
          height: 300px;
        }
      }
    </style>
  </head>
  <body>
    <header>
      <div class="header-content container">
        <h1>2024年度行政执法十大案例评选投票报告</h1>
        <p class="subtitle">
          公众参与行政执法监督的重要实践，反映社会关注热点与执法成效
        </p>
      </div>
    </header>

    <main class="container">
      <section>
        <div class="stats-grid">
          <div class="stat-card">
            <div class="stat-value">1252万</div>
            <div class="stat-label">总投票数</div>
          </div>
          <div class="stat-card">
            <div class="stat-value">123</div>
            <div class="stat-label">参评案例总数</div>
          </div>
          <div class="stat-card">
            <div class="stat-value">1977万</div>
            <div class="stat-label">总浏览量</div>
          </div>
          <div class="stat-card">
            <div class="stat-value">187万</div>
            <div class="stat-label">最高票案例</div>
          </div>
        </div>

        <p>
          本次评选活动于2025年5月27日至6月3日举行，为期8天，吸引了广泛的社会关注和参与。活动期间，公众通过线上平台对123个行政执法典型案例进行了投票评选，最终评选出最具代表性的十大案例。
        </p>
      </section>
      <section>
        <h2>案例排名情况</h2>
        <table class="table">
          <thead>
            <tr>
              <th>排名</th>
              <th>编号</th>
              <th>案例名称</th>
              <th>票数</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>1</td>
              <td>116号</td>
              <td>上海某某宾馆有限公司擅自搭建建筑物案</td>
              <td>1465480票</td>
            </tr>
            <tr>
              <td>2</td>
              <td>112号</td>
              <td>陈某某等人违法搭建建筑物案</td>
              <td>998933票</td>
            </tr>
            <tr>
              <td>3</td>
              <td>8号</td>
              <td>毛某虚构事实扰乱公共秩序案</td>
              <td>985550票</td>
            </tr>
            <tr>
              <td>4</td>
              <td>15号</td>
              <td>某律师违规收取费用案</td>
              <td>948004票</td>
            </tr>
            <tr>
              <td>5</td>
              <td>84号</td>
              <td>张某、王某出租住房不符合相关规定案</td>
              <td>940618票</td>
            </tr>
            <tr>
              <td>6</td>
              <td>22号</td>
              <td>某人力资源公司就业歧视案</td>
              <td>841963票</td>
            </tr>
            <tr>
              <td>7</td>
              <td>36号</td>
              <td>某实业公司未取得施工许可证擅自施工案</td>
              <td>805670票</td>
            </tr>
            <tr>
              <td>8</td>
              <td>82号</td>
              <td>孙某侵犯茅台注册商标专用权案</td>
              <td>715019票</td>
            </tr>
            <tr>
              <td>9</td>
              <td>48号</td>
              <td>某施工单位不按照工程设计图纸施工案</td>
              <td>653819票</td>
            </tr>
            <tr>
              <td>10</td>
              <td>63号</td>
              <td>某印务公司未与承租单位签订专门的安全管理协议案</td>
              <td>601305票</td>
            </tr>
          </tbody>
        </table>
      </section>

      <section>
        <h2>前十名投票趋势</h2>
        <div class="chart-container" id="voteTrendChart1"></div>
        <p>
          top10案例投票增长迅速，其中116号案例在6月1日后增长曲线高于其他曲线。
        </p>
      </section>

      <section>
        <h2>投票趋势分析</h2>
        <div class="chart-container" id="voteTrendChart"></div>
        <p>
          投票期间每日投票数呈明显增长趋势，6月2日达到峰值，单日投票数突破300万。整体趋势呈现"缓慢起步-快速增长-高峰-回落"的典型特征，反映了公众关注度随活动推进而不断增强的过程。
        </p>
      </section>

      <section>
        <h2>案例分类</h2>
        <table class="table">
          <thead>
            <tr>
              <th>分类类别</th>
              <th>案例数量</th>
              <th>占比</th>
              <th>典型案例特征</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td><strong>建筑违规</strong></td>
              <td>38</td>
              <td>30.89%</td>
              <td>违法搭建、未获规划许可施工（如116号宾馆案146万票）</td>
            </tr>
            <tr>
              <td><strong>安全生产</strong></td>
              <td>25</td>
              <td>20.33%</td>
              <td>危化品违规、消防隐患（如100号电动车充电案32万票）</td>
            </tr>
            <tr>
              <td><strong>市场监管</strong></td>
              <td>17</td>
              <td>13.82%</td>
              <td>不正当竞争、消费侵权（如84号违规租房案94万票）</td>
            </tr>
            <tr>
              <td><strong>医疗卫生</strong></td>
              <td>16</td>
              <td>13.01%</td>
              <td>医保骗保、药品违规（如89号药品生产案22万票）</td>
            </tr>
            <tr>
              <td><strong>环境保护</strong></td>
              <td>9</td>
              <td>7.32%</td>
              <td>违法排污、噪声污染（如87号噪声超标案1046票）</td>
            </tr>
            <tr>
              <td><strong>税务/社保违规</strong></td>
              <td>8</td>
              <td>6.50%</td>
              <td>偷逃税款、社保欠缴（如95号网红逃税案557票）</td>
            </tr>
            <tr>
              <td><strong>公共秩序</strong></td>
              <td>8</td>
              <td>6.50%</td>
              <td>扰乱秩序、非法组织（如8号造谣案98万票）</td>
            </tr>
            <tr>
              <td><strong>知识产权</strong></td>
              <td>2</td>
              <td>1.63%</td>
              <td>商标/专利侵权（如82号茅台侵权案71万票）</td>
            </tr>
            <tr>
              <td><strong>总计</strong></td>
              <td>123</td>
              <td>100%</td>
              <td>-</td>
            </tr>
          </tbody>
        </table>
      </section>

      <section>
        <h2>案例类型分布</h2>
        <div class="chart-container" id="caseTypeChart2"></div>
        <p>
          参评案例类型涵盖建筑物违规、公共秩序、收费违规等多个领域，其中建筑违规类案例占比最高，达30.89%，其次是安全生产类案例(20.33%)和医疗卫生类案例(13.82%)。这一分布反映了当前行政执法工作的重点领域。
        </p>

        
        <div class="chart-container" id="caseTypeChart"></div>
      </section>

      <section>
        <h2>票数分布与公众关注</h2>
        <div class="chart-container" id="dom_Chart"></div>
        <p>
          各案例票数差异明显，前十名案例共获得891万票，占总票数的71%，其中城市违建整治专项行动以195万票居首。案例浏览量与票数呈正相关关系，但转化率存在差异，安全生产类案例更能引起公众共鸣。
        </p>
        <div class="chart-container" id="voteDistributionChart"></div>
      </section>

      <section>
        <h2>投票地区分布</h2>
        <div class="chart-container" id="bar_Chart"></div>
        <p>
            投票地区分布广阔。全国 34 个省市自治区均有用户参与投票活动,其中上海地区参加投票人员占比82.5%。
        </p>
      </section>

      <section class="highlight">
        <h3 class="highlight-title">关键发现</h3>
        <ul>
          <li>
            公众对城市管理领域执法案例关注度最高，特别是涉及违建整治的案例
          </li>
          <li>食品安全监管案例虽数量不多，但公众参与度较高</li>
          <li>案例浏览量与投票量呈正相关，但不同类型案例的转化率差异明显</li>
          <li>活动后期公众参与度显著提升，反映了信息传播的累积效应</li>
          <li>全国各省市均有人参与，说明本次活动参与范围广泛</li>
        </ul>
      </section>
    </main>

    <section class="conclusion">
      <div class="container">
        <h2>报告结论</h2>
        <p>
          2024年度行政执法十大案例评选活动成功搭建了公众参与执法监督的平台，通过1252万张选票反映了社会对行政执法工作的关注重点。城市违建整治专项行动等典型案例获得了高度关注，为行政执法工作提供了宝贵的公众反馈。
        </p>
        <p>
          本次活动数据表明，公众对与日常生活密切相关的执法案例更为关注，这为未来行政执法工作的重点方向和公众沟通策略提供了重要参考。
        </p>
      </div>
    </section>

    <footer>
      <div class="container">
        <p>
          © 2025 上海市法治政府建设工作领导小组办公室 | 数据统计截止时间：2025年6月3日24时
        </p>
      </div>
    </footer>

    <script>
      // 粒子动画效果
      document.addEventListener("DOMContentLoaded", function () {
        // 创建粒子
        function createParticles() {
          const particles = [];
          const particleCount = 30;

          for (let i = 0; i < particleCount; i++) {
            const particle = document.createElement("div");
            particle.classList.add("particle");

            const size = Math.random() * 5 + 2;
            particle.style.width = `${size}px`;
            particle.style.height = `${size}px`;

            particle.style.left = `${Math.random() * 100}%`;
            particle.style.top = `${Math.random() * 100}%`;

            document.body.appendChild(particle);
            particles.push({
              element: particle,
              x: Math.random() * window.innerWidth,
              y: Math.random() * window.innerHeight,
              vx: (Math.random() - 0.5) * 0.5,
              vy: (Math.random() - 0.5) * 0.5,
            });
          }

          function animateParticles() {
            particles.forEach((p) => {
              p.x += p.vx;
              p.y += p.vy;

              // 边界检查
              if (p.x < 0 || p.x > window.innerWidth) p.vx *= -1;
              if (p.y < 0 || p.y > window.innerHeight) p.vy *= -1;

              p.element.style.transform = `translate(${p.x}px, ${p.y}px)`;
            });

            requestAnimationFrame(animateParticles);
          }

          animateParticles();
        }

        createParticles();

        // 初始化图表
        if (typeof echarts !== "undefined") {
          // 投票趋势图
          const trendChart = echarts.init(
            document.getElementById("voteTrendChart")
          );
          trendChart.setOption({
            color: ["#dd6b20"],
            tooltip: {
              trigger: "axis",
              formatter: "{b}<br/>投票数: {c}万",
            },
            grid: {
              left: "3%",
              right: "4%",
              bottom: "3%",
              containLabel: true,
            },
            xAxis: {
              type: "category",
              data: [
                "5/27",
                "5/28",
                "5/29",
                "5/30",
                "5/31",
                "6/1",
                "6/2",
                "6/3",
              ],
              axisLine: {
                lineStyle: {
                  color: "#4a5568",
                },
              },
            },
            yAxis: {
              type: "value",
              name: "投票数(万)",
              axisLine: {
                lineStyle: {
                  color: "#4a5568",
                },
              },
              splitLine: {
                lineStyle: {
                  color: "#f0f0f0",
                },
              },
            },
            series: [
              {
                name: "投票数",
                type: "line",
                smooth: true,
                data: [85, 92, 105, 135, 180, 240, 320, 195],
                areaStyle: {
                  color: {
                    type: "linear",
                    x: 0,
                    y: 0,
                    x2: 0,
                    y2: 1,
                    colorStops: [
                      {
                        offset: 0,
                        color: "rgba(221, 107, 32, 0.3)",
                      },
                      {
                        offset: 1,
                        color: "rgba(221, 107, 32, 0.1)",
                      },
                    ],
                  },
                },
                lineStyle: {
                  width: 3,
                },
              },
            ],
          });

          // 前十投票趋势图
          const trendChart1 = echarts.init(
            document.getElementById("voteTrendChart1")
          );

          const dates = [
            "5/27",
            "5/28",
            "5/29",
            "5/30",
            "5/31",
            "6/1",
            "6/2",
            "6/3",
          ];

          // TOP10案例投票数据（单位：万票）
          const cases = [
            {
              name: "116号宾馆违规建设案",
              data: [3.0, 8.5, 16.5, 28.0, 55.0, 87.0, 128.0, 146.0],
              color: "#e41a1c",
            },
            {
              name: "8号网络造谣扰乱秩序案",
              data: [4.5, 12.5, 37.0, 52.0, 65.0, 78.0, 90.0, 98.0],
              color: "#377eb8",
            },
            {
              name: "73号食品安全违法处罚案",
              data: [2.8, 10.2, 22.5, 36.0, 52.0, 67.0, 79.0, 87.0],
              color: "#4daf4a",
            },
            {
              name: "42号非法排污环境处罚案",
              data: [3.5, 11.0, 20.0, 34.0, 51.0, 63.0, 72.0, 78.0],
              color: "#984ea3",
            },
            {
              name: "155号违规校外培训整治案",
              data: [2.5, 8.0, 15.0, 24.0, 36.0, 50.0, 63.0, 72.0],
              color: "#ff7f00",
            },
            {
              name: "29号医疗欺诈行政处罚案",
              data: [4.0, 10.0, 18.0, 30.0, 42.0, 54.0, 62.0, 68.0],
              color: "#ffff33",
            },
            {
              name: "91号直播带货虚假宣传案",
              data: [5.5, 15.0, 25.0, 35.0, 43.0, 52.0, 58.0, 63.0],
              color: "#a65628",
            },
            {
              name: "134号违章建筑强拆执法案",
              data: [3.2, 9.0, 16.0, 26.0, 38.0, 47.0, 54.0, 58.0],
              color: "#f781bf",
            },
            {
              name: "67号非法营运车辆查处案",
              data: [6.0, 14.0, 22.0, 30.0, 38.0, 45.0, 50.0, 52.0],
              color: "#999999",
            },
            {
              name: "112号违规使用医保基金案",
              data: [2.0, 7.0, 14.0, 22.0, 31.0, 39.0, 44.0, 47.0],
              color: "#66c2a5",
            },
          ];

          trendChart1.setOption({
            title: {
              text: "TOP10案例每日累计投票趋势",
              left: "center",
              top: 10,
              textStyle: {
                fontSize: 20,
                fontWeight: "bold",
                color: "#1a3a5f",
              },
            },
            tooltip: {
              trigger: "axis",
              backgroundColor: "rgba(255, 255, 255, 0.95)",
              borderWidth: 0,
              padding: 15,
              textStyle: {
                color: "#333",
                fontSize: 14,
              },
              formatter: function (params) {
                let result = `<div style="font-weight:bold;margin-bottom:10px;">${params[0].name}</div>`;
                params.forEach(function (item) {
                  const value = item.value.toFixed(1) + "万票";
                  result += `
                        <div style="display:flex;align-items:center;margin:8px 0;">
                            <div style="width:12px;height:12px;border-radius:50%;background:${item.color};margin-right:10px;"></div> 
                            <div style="flex:1;">${item.seriesName}</div> 
                            <div style="font-weight:bold;">${value}</div>
                        </div>`;
                });
                return result;
              },
            },
            legend: {
              type: "scroll",
              bottom: 10,
              pageIconColor: "#1a3a5f",
              pageTextStyle: {
                color: "#666",
              },
              textStyle: {
                fontSize: 12,
              },
            },
            grid: {
              left: "3%",
              right: "4%",
              bottom: "15%",
              top: "15%",
              containLabel: true,
            },
            xAxis: {
              type: "category",
              boundaryGap: false,
              data: dates,
              axisLine: {
                lineStyle: {
                  color: "#666",
                },
              },
              axisLabel: {
                fontSize: 13,
              },
            },
            yAxis: {
              type: "value",
              name: "累计票数（万）",
              nameTextStyle: {
                padding: [0, 30, 0, 0],
                fontSize: 14,
              },
              splitLine: {
                lineStyle: {
                  type: "dashed",
                  opacity: 0.7,
                },
              },
            },
            dataZoom: [
              {
                type: "inside",
                start: 0,
                end: 100,
              },
            ],
            series: cases.map((caseData) => {
              return {
                name: caseData.name,
                type: "line",
                smooth: true,
                symbol: "circle",
                symbolSize: 8,
                lineStyle: {
                  width: 3,
                },
                itemStyle: {
                  color: caseData.color,
                },
                data: caseData.data,
              };
            }),
          });

          // 案例类型分布图
          const typeChart = echarts.init(
            document.getElementById("caseTypeChart")
          );
          typeChart.setOption({
            color: ["#1a365d", "#2c5282", "#4299e1", "#90cdf4", "#ebf8ff"],
            tooltip: {
              trigger: "item",
              formatter: "{a} <br/>{b}: {c} ({d}%)",
            },
            legend: {
              orient: "vertical",
              right: 10,
              top: "center",
              data: [
                "建筑违规",
                "安全生产",
                "医疗卫生",
                "市场监管",
                "税务/社保违规",
                "环境保护",
                "知识产权",
                "公共秩序",
              ],
            },
            series: [
              {
                name: "案例类型",
                type: "pie",
                radius: ["40%", "70%"],
                avoidLabelOverlap: false,
                itemStyle: {
                  borderRadius: 10,
                  borderColor: "#fff",
                  borderWidth: 2,
                },
                label: {
                  show: false,
                  position: "center",
                },
                emphasis: {
                  label: {
                    show: true,
                    fontSize: "18",
                    fontWeight: "bold",
                  },
                },
                labelLine: {
                  show: false,
                },
                data: [
                  { value: 30.89, name: "建筑违规" },
                  { value: 20.33, name: "安全生产" },
                  { value: 13.82, name: "市场监管" },
                  { value: 13.01, name: "医疗卫生" },
                  { value: 7.32, name: "环境保护" },
                  { value: 6.5, name: "税务/社保违规" },
                  { value: 6.5, name: "公共秩序" },
                  { value: 1.63, name: "知识产权" },
                ],
              },
            ],
          });

          const dom_Chart = echarts.init(document.getElementById("dom_Chart"));
          dom_Chart.setOption({
            xAxis: {},
            yAxis: {},
            series: [
              {
                symbolSize: 20,
                data: [
                  [10.0, 8.04],
                  [8.07, 6.95],
                  [13.0, 7.58],
                  [9.05, 8.81],
                  [11.0, 8.33],
                  [14.0, 7.66],
                  [13.4, 6.81],
                  [10.0, 6.33],
                  [14.0, 8.96],
                  [12.5, 6.82],
                  [9.15, 7.2],
                  [11.5, 7.2],
                  [3.03, 4.23],
                  [12.2, 7.83],
                  [2.02, 4.47],
                  [1.05, 3.33],
                  [4.05, 4.96],
                  [6.03, 7.24],
                  [12.0, 6.26],
                  [12.0, 8.84],
                  [7.08, 5.82],
                  [5.02, 5.68],
                ],
                type: "scatter",
              },
            ],
          });

          const bar_Chart = echarts.init(document.getElementById("bar_Chart"));
          bar_Chart.setOption({
            xAxis: {
              type: "category",
              data: ["上海", "江苏", "安徽", "浙江", "山东", "河南", "其他"],
            },
            yAxis: {
              type: "value",
            },
            series: [
              {
                data: [82.5, 5.3, 3.2, 3.1, 2.5, 2.1, 1.3],
                type: "bar",
                itemStyle: {
                                normal: {
                                    label: {
                                        show: true, 
                                        position: 'top',
                                        textStyle: {
                                            color: 'black',
                                            fontSize: 12
                                        },
                                        formatter: '{c}%'
                                    }
                                }
                            }
              },
            ],
          });

          // 案例类型分布图
          const typeChart2 = echarts.init(
            document.getElementById("caseTypeChart2")
          );
          typeChart2.setOption({
            color: ["#1a365d", "#2c5282", "#4299e1", "#90cdf4", "#ebf8ff"],
            tooltip: {
              trigger: "item",
              formatter: "{a} <br/>{b}: {c} ({d}%)",
            },
            legend: {
              orient: "vertical",
              right: 10,
              top: "center",
              data: [
                "建筑违规",
                "安全生产",
                "医疗卫生",
                "市场监管",
                "税务/社保违规",
                "环境保护",
                "知识产权",
                "公共秩序",
              ],
            },
            series: [
              {
                name: "案例类型",
                type: "pie",
                radius: "50%",
                emphasis: {
                  label: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: "rgba(0, 0, 0, 0.5)",
                  },
                },
                data: [
                  { value: 30.89, name: "建筑违规" },
                  { value: 20.33, name: "安全生产" },
                  { value: 13.82, name: "市场监管" },
                  { value: 13.01, name: "医疗卫生" },
                  { value: 7.32, name: "环境保护" },
                  { value: 6.5, name: "税务/社保违规" },
                  { value: 6.5, name: "公共秩序" },
                  { value: 1.63, name: "知识产权" },
                ],
              },
            ],
          });

          // 票数分布图
          const voteChart = echarts.init(
            document.getElementById("voteDistributionChart")
          );
          voteChart.setOption({
            color: ["#1a365d"],
            tooltip: {
              trigger: "axis",
              axisPointer: {
                type: "shadow",
              },
              formatter: "排名: {b}<br/>票数: {c}万",
            },
            grid: {
              left: "3%",
              right: "4%",
              bottom: "3%",
              containLabel: true,
            },
            xAxis: {
              type: "value",
              name: "票数(万)",
              axisLine: {
                lineStyle: {
                  color: "#4a5568",
                },
              },
              splitLine: {
                lineStyle: {
                  color: "#f0f0f0",
                },
              },
            },
            yAxis: {
              type: "category",
              data: [
                "63号",
                "48号",
                "82号",
                "36号",
                "22号",
                "84号",
                "15号",
                "8号",
                "112号",
                "116号",
              ],
              axisLine: {
                lineStyle: {
                  color: "#4a5568",
                },
              },
            },
            series: [
              {
                name: "",
                type: "bar",
                data: [60, 65, 71, 80, 84, 94, 94, 98, 99, 146],
                itemStyle: {
                  borderRadius: [0, 4, 4, 0],
                },
                label: {
                  show: true,
                  position: "right",
                  formatter: "{c}万",
                },
              },
            ],
          });

          var dom = document.getElementById("chart_main");
          var myChart = echarts.init(dom, null, {
            renderer: "canvas",
            useDirtyRect: false,
          });

          var option = {
            xAxis: {
              type: "category",
              data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
            },
            yAxis: {
              type: "value",
            },
            series: [
              {
                data: [820, 932, 901, 934, 1290, 1330, 1320],
                type: "line",
                smooth: true,
              },
            ],
          };

          if (option && typeof option === "object") {
            myChart.setOption(option);
          }

          // 响应式调整
          window.addEventListener("resize", function () {
            trendChart.resize();
            typeChart.resize();
            voteChart.resize();
            myChart.resize();
          });
        }
      });
    </script>
  </body>
</html>
